package com.cy.detectsys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cy.detectsys.entity.ErrLog;
import com.cy.detectsys.service.ErrLogService;
import com.cy.detectsys.mapper.ErrLogMapper;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
* @author admin
* @description 针对表【err_log】的数据库操作Service实现
* @createDate 2024-05-10 19:19:55
*/
@Service
public class ErrLogServiceImpl extends ServiceImpl<ErrLogMapper, ErrLog>
    implements ErrLogService{

    @Override
    public void small_err(String msg) {
        ErrLog errLog = new ErrLog();
        errLog.setErrLevel("small");
        errLog.setErrMsg(msg);
        errLog.setStatus("未处理");
        errLog.setCreateTime(new Date());
        baseMapper.insert(errLog);
    }
}




